Skip to main content

mergAVPlayerSet

Type

command

Summary

Set a player property

Syntax

mergAVPlayerSet <pPlayerPointer>, <pProperty>, <pValue>

Description

Set a player property

Parameters

NameTypeDescription

pPlayerPointer

a pointer to the player in memory

pProperty

the name of the property you are setting which will be one

of

  • rect : the rect of the control

  • visible : the visible of the control

  • rate : the play rate of the player where 0 is paused. 1 is normal forward play and -1 is reverse. See "can play fast forward" and "can play fast reverse" properties

  • video gravity : how to size the video within the rect of the player. One of:

    • stretch
    • aspect
    • aspect fill
  • forward playback end time : set the time at which playback should end when the playback rate is positive. Time should be in milliseconds. The value of this property has no effect on playback when the rate is negative.

  • reverse playback end time : set the time at which playback should end when the playback rate is negative. Time should be in milliseconds. The value of this property has no effect on playback when the rate is positive.

pValue

the value to set the property to.

Compatibility and Support

Introduced

LiveCode 8.0

OS

ios

mac

Platforms

desktop

mobile

Thank you for your feedback!

Was this page helpful?